Optimal. Leaf size=54 \[ \frac{1}{4} \tan ^3(x) \sqrt{a \sec ^2(x)}-\frac{3}{8} \tan (x) \sqrt{a \sec ^2(x)}+\frac{3}{8} \cos (x) \sqrt{a \sec ^2(x)} \tanh ^{-1}(\sin (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.105229, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235, Rules used = {3657, 4125, 2611, 3770} \[ \frac{1}{4} \tan ^3(x) \sqrt{a \sec ^2(x)}-\frac{3}{8} \tan (x) \sqrt{a \sec ^2(x)}+\frac{3}{8} \cos (x) \sqrt{a \sec ^2(x)} \tanh ^{-1}(\sin (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3657
Rule 4125
Rule 2611
Rule 3770
Rubi steps
\begin{align*} \int \tan ^4(x) \sqrt{a+a \tan ^2(x)} \, dx &=\int \sqrt{a \sec ^2(x)} \tan ^4(x) \, dx\\ &=\left (\cos (x) \sqrt{a \sec ^2(x)}\right ) \int \sec (x) \tan ^4(x) \, dx\\ &=\frac{1}{4} \sqrt{a \sec ^2(x)} \tan ^3(x)-\frac{1}{4} \left (3 \cos (x) \sqrt{a \sec ^2(x)}\right ) \int \sec (x) \tan ^2(x) \, dx\\ &=-\frac{3}{8} \sqrt{a \sec ^2(x)} \tan (x)+\frac{1}{4} \sqrt{a \sec ^2(x)} \tan ^3(x)+\frac{1}{8} \left (3 \cos (x) \sqrt{a \sec ^2(x)}\right ) \int \sec (x) \, dx\\ &=\frac{3}{8} \tanh ^{-1}(\sin (x)) \cos (x) \sqrt{a \sec ^2(x)}-\frac{3}{8} \sqrt{a \sec ^2(x)} \tan (x)+\frac{1}{4} \sqrt{a \sec ^2(x)} \tan ^3(x)\\ \end{align*}
Mathematica [A] time = 0.0757117, size = 32, normalized size = 0.59 \[ \frac{1}{8} \sqrt{a \sec ^2(x)} \left (2 \tan ^3(x)-3 \tan (x)+3 \cos (x) \tanh ^{-1}(\sin (x))\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.052, size = 56, normalized size = 1. \begin{align*}{\frac{\tan \left ( x \right ) }{4\,a} \left ( a+a \left ( \tan \left ( x \right ) \right ) ^{2} \right ) ^{{\frac{3}{2}}}}-{\frac{5\,\tan \left ( x \right ) }{8}\sqrt{a+a \left ( \tan \left ( x \right ) \right ) ^{2}}}+{\frac{3}{8}\sqrt{a}\ln \left ( \sqrt{a}\tan \left ( x \right ) +\sqrt{a+a \left ( \tan \left ( x \right ) \right ) ^{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.84765, size = 1161, normalized size = 21.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.48208, size = 171, normalized size = 3.17 \begin{align*} \frac{1}{8} \, \sqrt{a \tan \left (x\right )^{2} + a}{\left (2 \, \tan \left (x\right )^{3} - 3 \, \tan \left (x\right )\right )} + \frac{3}{16} \, \sqrt{a} \log \left (2 \, a \tan \left (x\right )^{2} + 2 \, \sqrt{a \tan \left (x\right )^{2} + a} \sqrt{a} \tan \left (x\right ) + a\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \left (\tan ^{2}{\left (x \right )} + 1\right )} \tan ^{4}{\left (x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14118, size = 65, normalized size = 1.2 \begin{align*} \frac{1}{8} \, \sqrt{a \tan \left (x\right )^{2} + a}{\left (2 \, \tan \left (x\right )^{2} - 3\right )} \tan \left (x\right ) - \frac{3}{8} \, \sqrt{a} \log \left ({\left | -\sqrt{a} \tan \left (x\right ) + \sqrt{a \tan \left (x\right )^{2} + a} \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]